# -*- coding:utf-8 -*-

from mako.template import Template

css_project_template = Template("""
/* auto generated css rules for project types */

% for ptype in ptypes:
    #project_panel .subpanel .head .icon_${ptype} {
        background-image: url(/static/icon/project/${ptype}.svg);
    }

    #project_panel .choose_projtype .button i.icon_${ptype} {
        background-image: url(/static/icon/project/${ptype}.svg);
    }

    .project_list .project_entry .icon_${ptype} {
        background-image: url(/static/icon/project/${ptype}.svg);
    }
% endfor
""")

css_datasets_template = Template("""
/* auto generated css rules for project types */

% for dataset in datasets:
    .textthumb .icon_${dataset} { background-image: url(/static/thumbicon/dataset/${dataset}.png); }
    .ds_box .dataset option[value|=${dataset}] { background-image: url(/static/thumbicon/dataset/${dataset}.png);}
% endfor

% for subset in subsets:
    .textthumb .icon_${subset} { background-image: url(/static/thumbicon/subset/${subset}.png); }
% endfor
""")


"""
removed from css_template
% for variable in variables:
    .textthumb .icon_${variable} { background-image: url(/static/thumbicon/variable/${variable}.png); }
% endfor
"""
